package com.ht.aems.fesmodel;

import com.ht.aems.fesmodel.data.AnalogPoint;
import com.ht.aems.fesmodel.data.DiscretePoint;

import java.util.Date;
import java.util.Map;

/**
 * Created by IntelliJ IDEA.
 *
 * @author Dong Shufeng
 *         Date: 2010-8-6
 */
public interface HisDataProvider {
  
    public Map<Long, Double> getMinuteAnalogInSameDay(int nid, long start, long end);

    public Map<Integer, Double> getMinuteAnalog(int[] nids, Date minute);

    public Map<Integer, Double> getDayAnalog(int[] nids, Date day);

    public Map<Integer, Double> getMonthAnalog(int[] nids, Date month);

    public Map<Integer, Double> getYearAnalog(int[] nids, Date year);

    public Double get(AnalogPoint p, long time);

    public Integer get(DiscretePoint p, long time);

    public Map<Long, Double> get(AnalogPoint p, long start, long end, int hisSampleType);

    public Map<Long, Integer> get(DiscretePoint p, long start, long end, int hisSampleType);
}
